package com.pavco.caribbeanvisit.client.ui;

import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.maps.client.overlay.MarkerOptions;
import com.google.gwt.user.client.ui.HasName;
import com.pavco.caribbeanvisit.shared.models.Attraction;

public class AttractionMarker extends Marker implements HasName {
  private String name;
  
  public AttractionMarker(Attraction attraction, MarkerOptions options) {
    super(LatLng.newInstance(attraction.getLatitude(), attraction.getLongitude()), options);
  } 

  @Override
  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String getName() {
    return name;
  }
}